package com.hornsun.domain.constant.types;

/**
 * Created by 编译中... on 2018/5/29.
 */
public enum VerifyType {
    MOBILEBOUND(1,"手机绑定");
    private Integer type;
    private String name;

    VerifyType(Integer type ,String name){this.type=type;this.name=name;}

    public Integer getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public static VerifyType fromName(String name) {
        for (VerifyType verifyType : values()) {
            if (verifyType.name.equals(name) ) {
                return verifyType;
            }
        }
        return null;
    }
}
